package com.example.personnel_oa.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.comment_oa.pojos.SysEmployee;
import com.example.comment_oa.pojos.SysUser;
import com.example.comment_oa.pojos_vo.HySysEmpVo;
import com.example.personnel_oa.mapper.SysEmployeeMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author asus
* @description 针对表【sys_employee】的数据库操作Service
* @createDate 2022-10-17 19:09:25
*/
@Service
public interface SysEmployeeService extends IService<SysEmployee> {
    List<SysEmployeeMapper> selectDPE();

    int countemp();
    //根据id查询员工信息部门职位
    SysEmployee selectEmpId(int empId);
    //查询出人事部门的员工
    List<SysEmployee> jobName();
    //查询出全部员工不包含懂事长部门
    List<SysEmployee> selectEmp();
    //条件查询（部门id,职位id，性别，政治面貌，婚姻，实习/正式）
    List<SysEmployee> selectEmpPostDept(HySysEmpVo sysEmpVo);
    //根据员工id修改员工工资
    int updateSalary(int empSalary,int empId);
    //根据部门id查询全部员工
    List<SysEmployee> depidtEmp(int deptId);
    //根据工号查询员工
    SysEmployee gonghao(String empCard);
    //根据工号查询全部员工信息(部门，岗位)
    SysEmployee empCard_empId(String empCard);

    //员工入职时新增员工
    int addEmp(SysEmployee employee);
    //入职时添加员工职位中间表，先查出员工id
    SysEmployee ID(String empIdcard);
    //查询在职，离职工资未结清的人员
    List<SysEmployee> empis();
    //根据员工工号查询员工
    SysEmployee empCardID(String empCard);

    //根据岗位名称查询员工
    List<SysEmployee> postName(String postsName);

    //根据员工id修改试用员工为正式员工
    int setEmpState(int empId);

}
